package com.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(value = "service-code",path = "/code")
public interface CodeServiceFeigClient {
    @GetMapping("/valdate/{email}/{code}")
    public Map valdate(@PathVariable String email, @PathVariable String code);
}
